<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>visibility</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            border: 1px solid #ff0000;
        }
        .box1{
            float: left;
            visibility: hidden;/*掩藏但是占据位置*/
        }
        .box2{
            float: left;
        }
        .box3{
            clear: both;
        }
        .box4{
            display: none;/*隐藏 什么也看不见 不占位置*/
        }
    </style>
</head>
<body>
<div class="box1">我爱北京天安门</div>
<div class="box2">我爱家乡2</div>
<div class="box3">我爱家乡3</div>
<div class="box4">我爱家乡4</div>
<div class="box5">我爱家乡5</div>
</body>
</html>